
import $http from "@/utils/request";
//设备列表
export function devceLists(data) {
  return $http.get('/user_app/unit_list', {params:data}, {
    custom: {
      auth: false
    }
  })
}
//绑定设备
export function bindDevice(data) {
  return $http.get('/unit/user_bind', {params:data}, {
    custom: {
      auth: false
    }
  })
}


//绑定设备
export function modifyDevice(data) {
  return $http.get('/user_app/update_alias', {params:data}, {
    custom: {
      auth: false
    }
  })
}

//设备分配房间
export function deviceToHome(data) {
  return $http.get('/unit/xg/fjs', {params:data}, {
    custom: {
      auth: false
    }
  })
}

//设备分配房间
export function deleteDevice(data) {
  return $http.get('/unit/relieve_bind', {params:data}, {
    custom: {
      auth: false
    }
  })
}

//集控器 历史数据
export function historyData(data) {
  return $http.get('/unit/history_data', {params:data}, {
    custom: {
      auth: false
    }
  })
}